package inseniarlingua.lang;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

class PhraseTest
{
	Phrase cut

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testEqualsObject() {
		cut = new Phrase(["it's",  '*', "o'clock"])
		assertFalse(cut.equals(null))
		assertFalse(cut.equals('not right class'))
		assertTrue(cut.equals(cut))
		assertFalse(cut.equals([]))
		assertTrue(cut.equals(new Phrase(["it's",  'seven', "o'clock"])))
		assertFalse(cut.equals(new Phrase(["it'ss",  'seven', "o'clock"])))
	}
}
